<template>
  <result
    :is_success="true"
    :content="false"
    :title="email"
    :description="description"
  >
    <template slot="action">
      <!--a-button size="large" class="primary-btn">查看邮箱</a-button-->
      <a-button size="large" style="margin-left: 8px" @click="goHomeHandle">返回登录</a-button>
    </template>

  </result>
</template>

<script>
import { Result } from '@/components'

export default {
  name: 'RegisterResult',
  auth: false,
  components: {
    Result
  },
  data () {
    return {
      description: '请使用新的密码重新的登录',
      form: {}
    }
  },
  computed: {
    email () {
      const v = this.form && this.form.mobile || 'xxx'
      const title = `手机号码为：${v} 的密码重置成功`
      return title
    }
  },
  created () {
    this.form = this.$route.params
  },
  methods: {
    goHomeHandle () {
      this.$router.push({ path: '/users/login' })
    }
  }
}
</script>

<style scoped>

</style>
